﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace uploadTest1
{
	public partial class MainPage : UserControl
	{
        public uploader ul;
		public MainPage()
		{
			// Required to initialize variables
			InitializeComponent();
		}

		private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
		{
            ul = new uploader();
			ul.Show();
            ul.Closed += new EventHandler(ul_Closed);
		}

        void ul_Closed(object sender, EventArgs e)
        {
            fileNames.ItemsSource = ul.filesSent;
            foreach (string s in ul.GUIDNames)
            {
                guidNames.Items.Add(s);
            }
            
            
        }
	}
}